package com.xiyue.leaspring.util.dbc;

import redis.clients.jedis.Jedis;

public class RedisConnectionUtil {

	private static final String REDIS_HOST = "127.0.0.1";
	private static final int REDIS_PORT = 6379;
	private Jedis jedis;
	
	public RedisConnectionUtil() {
		this.jedis = new Jedis(REDIS_HOST, REDIS_PORT);
	}
	
	public void close() {
		this.jedis.close();
	}
	
	public Jedis getConnection() {
		return this.jedis;
	}
	
}
